﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication3._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    
    <div>
 <asp:Button runat="server" ID="Add" Text="添加" Width="93px" OnClick="Add_Click" />
        </div>
    
    <asp:GridView runat="server" ID="gv3" AutoGenerateColumns="False" OnRowCancelingEdit="gv3_RowCancelingEdit" OnRowDeleting="gv3_RowDeleting" 
        OnRowEditing="gv3_RowEditing" OnRowUpdating="gv3_RowUpdating" Height="400px" Width="1023px" >
        <Columns>
            <asp:BoundField DataField="id" ReadOnly="true" HeaderText="ID" />
            <asp:BoundField DataField="Title" HeaderText="标题" />
            <asp:BoundField DataField="Content" HeaderText="内容" />
            <asp:BoundField DataField="Author" HeaderText="作者" />
            <asp:BoundField DataField="Remarks" HeaderText="备注" />
            <asp:CommandField HeaderText="操作" ShowCancelButton="true" ShowDeleteButton="true" ShowEditButton="true" />
        </Columns>

        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#594B9C" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#33276A" />

    </asp:GridView>
   
</asp:Content>
